package com.whc.gulimall.product.feign;

import com.whc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author angaoen
 */
@FeignClient(name = "gulimall-ware", path = "/ware")
public interface WareFeignService {

    /**
     * 获取对应商品是否有库存
     *
     * @param skuIds 商品id列表
     * @return 统一返回结果
     */
    @PostMapping("/waresku/hasStock")
    R hasStock(@RequestBody List<Long> skuIds);
}
